{{include file="public/header" /}}

<!-- right content start  -->
<div class="content-right">
    <div class="content">
        <!-- form start -->
        <form class="am-form form-validation view-save" action="{{:MyUrl('admin/Goods/saveBlacklist')}}" method="POST" request-type="ajax-url" request-value="{{:MyUrl('admin/Goods/blacklist', $params)}}" enctype="multipart/form-data">
            <legend>
                <span class="fs-16">
                    {{if empty($data['id'])}}
                     商品黑名单添加
                    {{else /}}
                      商品黑名单编辑
                    {{/if}}
                </span>
                
              <a href="javascript:window.history.back();" class="fr fs-14 m-t-5 am-icon-mail-reply"> 返回</a>
            </legend>
            <!-- 基础信息 -->
            <div id="goods-nav-base" class="division-block"> 
                <div class="am-form-group">
                    <label><span class="am-form-group-label-tips" style="color:red">*</span>名称</label>
                    <input type="text" name="title" placeholder="作者名称" maxlength="160" data-validation-message="作者名称 最多160个字符" class="am-radius" {{if !empty($data)}} value="{{$data.title}}"{{/if}} />
                           
                </div>
                <div class="am-form-group">
                    <label><span class="am-form-group-label-tips" style="color:red">*</span>作者</label>
                    <input type="text" name="author" placeholder="作者介绍" maxlength="160" data-validation-message="作者介绍 最多160个字符" class="am-radius" {{if !empty($data)}} value="{{$data.author}}"{{/if}} />
                </div>
                       <div class="am-form-group am-form-file">
                            <label class="block"><span class="am-form-group-label-tips" style="color:red">*</span>照片</label>
                            <ul class="plug-file-upload-view goods-recommended-images-view" data-form-name="images" data-max-number="1" data-dialog-type="images">
                                {{if !empty($data['images'])}}
                                <li>
                                    <input type="text" name="images" value="{{$data.images}}" />
                                    <img src="{{$data.images}}" />
                                    <i>×</i>
                                </li>
                                {{/if}}
                            </ul>
                            <div class="plug-file-upload-submit" data-view-tag="ul.goods-recommended-images-view">+上传图片</div>
                        </div>  
                 <div class="am-form-group">
                    <label><span class="am-form-group-label-tips" style="color:red">*</span>出版社</label>
                    <input type="text"  style="display: -webkit-inline-box;width:80%" name="press" placeholder="出版社"   class="am-radius" value="{{if empty($data)}}{{else /}}{{$data.press}}{{/if}}" required />
                </div>
                   <div class="am-form-group">
                    <label><span class="am-form-group-label-tips" style="color:red">*</span>出版时间</label>
                    <div style="display:-webkit-inline-box;width:80%" >
                    <select name="pubdate"  class="am-radius chosen-select" minchecked="1" data-placeholder="请选择..." data-validation-message="请选择出版时间" required > 
                        {{if !empty($pubDate)}}
                        {{foreach $pubDate as $k=>$v}}
                        <option value="{{$k}}" {{if !empty($data['pubdate']) and ( $k== $data['pubdate'])}}selected{{/if}} >一级 - {{$k}}</option>
                        {{if !empty($v)}}
                        {{foreach $v as $kk=>$vs}}
                        <option style="padding-left: 30px;" value="{{$vs}}" {{if !empty($data['pubdate']) and ($vs== $data['pubdate'])}}selected{{/if}} >二级-{{$vs}}</option>
                        
                        {{/foreach}}
                        {{/if}}
                        {{/foreach}}
                        {{/if}}
                    </select>
                    </div>
                </div>
                   <div class="am-form-group" >
                    <label><span class="am-form-group-label-tips" ></span>ISBN<span class="am-form-group-label-tips"></span></label>
                    <input  type="text"  style="display: -webkit-inline-box;width:80%" name="isbn" placeholder="ISBN"   class="am-radius" value="{{if empty($data)}}{{else /}}{{$data.isbn}}{{/if}}"  />
                </div>
                    </div>
                     
                    <div class="am-form-group am-form-group-refreshing">
                        <input type="hidden" name="id" {{if !empty($data)}} value="{{$data.id}}"{{/if}} />
                               <button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm am-btn-block" data-am-loading="{loadingText:'处理中...'}">保存</button>
                    </div>
                    </form>
                    <!-- form end -->
                </div>
            </div>
            <!-- right content end  -->
            
      
            <!-- footer start -->
            {{include file="public/footer" /}}
            <!-- footer end -->
 